/**
 * @file e6_t2_q3.c
 * @date 2022-03-09
 * 
 * 
 * @copyright Copyright (c) 2022 cnzyx MIT Licence
 * 
 */

#include<stdio.h>
#include<stdlib.h>

void fun(int x,int a[]){
    a[0]=x*x;
    a[1]=x*x*x;
}

int main(int argc, char const *argv[])
{
    //UTF-8
    system("chcp 65001");

    int in_num,a[2];
    printf("请输入一个整数x：");
    scanf("%d",&in_num);
    fun(in_num,a);
    printf("a=%d\na2=%d\na3=%d\n",in_num,a[0],a[1]);
    
    //Pause console
    system("pause");
    return 0;
}
